﻿namespace LowCoding.Common
{
    public class AppSettings
    {
        /// <summary>
        /// 网站地址
        /// </summary>
        public static readonly string domain = ConfigHelper.Configuration["AppSettings:domain"] ?? "";

        /// <summary>
        /// 下载文件路径
        /// </summary>
        public static readonly string downloadpath = ConfigHelper.Configuration["AppSettings:downloadpath"] ?? "download";

        /// <summary>
        /// 上传文件路径
        /// </summary>
        public static readonly string uploadpath = ConfigHelper.Configuration["AppSettings:uploadpath"] ?? "uploadpath";

        /// <summary>
        /// 模板文件路径
        /// </summary>
        public static readonly string templatepath = ConfigHelper.Configuration["AppSettings:templatepath"] ?? "template";

        /// <summary>
        /// 默认密码
        /// </summary>
        public static readonly string defaultpass = ConfigHelper.Configuration["AppSettings:defaultpass"] ?? "123456";

        /// <summary>
        /// 默认头像地址
        /// </summary>
        public static readonly string defaultavatar = ConfigHelper.Configuration["AppSettings:defaultavatar"] ?? "http://db.winjoinit.com:25122/uploads/images/default.jpg";

        /// <summary>
        /// 测试服务器路径
        /// </summary>
        public static readonly string uploadpath104 = ConfigHelper.Configuration["AppSettings:uploadpath104"] ?? "http://192.168.1.104:51004";

        #region JWT配置

        /// <summary>
        /// 初始密码
        /// </summary>
        public static readonly string InitialPassword = ConfigHelper.Configuration["JWTToken:InitialPassword"] ?? "Abc12345";

        /// <summary>
        /// 密盐（再md5加密混淆用的)
        /// </summary>
        public static readonly string Md5Salt = ConfigHelper.Configuration["JWTToken:Md5Salt"] ?? "winjoinit_20120808";

        /// <summary>
        /// jwt密钥
        /// </summary>
        public static readonly string JwtSecretKey = ConfigHelper.Configuration["JWTToken:Secret"] ?? "Secret";

        #endregion JWT配置

        #region 基础支撑配置

        /// <summary>
        /// appid
        /// </summary>
        public static readonly string basic_appid = ConfigHelper.Configuration["BasicSupportConfig:appid"];

        /// <summary>
        /// userid
        /// </summary>
        public static readonly string basic_userid = ConfigHelper.Configuration["BasicSupportConfig:userid"];

        /// <summary>
        /// publickey
        /// </summary>
        public static readonly string basic_publickey = ConfigHelper.Configuration["BasicSupportConfig:publickey"];

        /// <summary>
        /// .net接口地址
        /// </summary>
        public static readonly string basic_netapiurl = ConfigHelper.Configuration["AppSettings:netapiurl"] ?? "http://db.winjoinit.com:10047";

        /// <summary>
        /// java接口地址
        /// </summary>
        public static readonly string basic_javaapiurl = ConfigHelper.Configuration["AppSettings:javaapiurl"] ?? "http://basemag2.lincoc.com";

        /// <summary>
        /// cas注册接口地址
        /// </summary>
        public static readonly string casregisteruser = ConfigHelper.Configuration["AppSettings:casregisteruser"] ?? "http://58.48.75.98:8082";

        /// <summary>
        /// 平台管理员接收短信的手机号
        /// </summary>
        public static readonly string platform_mobile = ConfigHelper.Configuration["AppSettings:platform_mobile"];

        #endregion 基础支撑配置

        #region 物流接口地址

        /// <summary>
        /// 集装箱报文查询接口
        /// </summary>
        public static readonly string containertrackingurl = ConfigHelper.Configuration["AppSettings:containertrackingurl"];

        #endregion 物流接口地址

        #region 上传文件配置

        /// <summary>
        /// 显示上传文件大小KB
        /// </summary>
        public static readonly string fileMaxSize = ConfigHelper.Configuration["UploadFileConfig:fileMaxSize"] ?? "2048";

        /// <summary>
        /// 限制上传文件类型
        /// </summary>
        public static readonly string fileExts = ConfigHelper.Configuration["UploadFileConfig:FileExts"] ?? "jpg,png,jpeg";

        #endregion 上传文件配置

        #region 贸易订单文件配置
        /// <summary>
        /// 上传文件路径
        /// </summary>
        public static readonly string uploadpathByOrder = ConfigHelper.Configuration["AppSettings:uploadpathByOrder"] ?? "uploadpath/order";

        /// <summary>
        /// 显示上传文件大小KB
        /// </summary>
        public static readonly string fileMaxSizeByOrder = ConfigHelper.Configuration["UploadFileConfig:fileMaxSizeByOrder"] ?? "2048";

        /// <summary>
        /// 限制上传文件类型
        /// </summary>
        public static readonly string fileExtsByOrder = ConfigHelper.Configuration["UploadFileConfig:FileExtsByOrder"] ?? "pdf,jpg,png,jpeg";
        #endregion

        #region 接口配置

        /// <summary>
        /// 智运网接口域名地址
        /// </summary>
        public static readonly string zyw_apidomain = "http://www.ilogisticsnet.com:90";// ConfigHelper.Configuration["AppSettings:zyw_apidomain"];
        public static readonly string zyw_apitoken = "13F17D231A4A4A5CA45BA4E9B87838AE";// ConfigHelper.Configuration["AppSettings:zyw_apitoken"];

        /// <summary>
        /// 大宗接口域名地址
        /// </summary>
        public static readonly string dz_apidomain = ConfigHelper.Configuration["AppSettings:dz_apidomain"];

        /// <summary>
        /// 网络货运接口地址
        /// </summary>
        public static readonly string wlhy_apidomain = ConfigHelper.Configuration["AppSettings:wlhy_apidomain"];

        #endregion 接口配置

        #region 门户上传附件配置

        /// <summary>
        /// 限制上传文件类型
        /// </summary>
        public static readonly string FileUploadAttachment = ConfigHelper.Configuration["UploadFileConfig:FileUploadAttachment"] ?? "jpg,png,jpeg,pdf,zip,rar,crt,xls,xlsx,docx,doc";

        /// <summary>
        /// 采购订单上传文件路径
        /// </summary>
        public static readonly string uploadpathByCGOrder = ConfigHelper.Configuration["AppSettings:uploadpathByCGOrder"] ?? "uploadpath/CGorder";

        /// <summary>
        /// 销售订单上传文件路径
        /// </summary>
        public static readonly string uploadpathByXSOrder = ConfigHelper.Configuration["AppSettings:uploadpathByXSOrder"] ?? "uploadpath/XSorder";

        /// <summary>
        /// 付款凭证附件上传文件路径
        /// </summary>
        public static readonly string uploadpathByBillofCredit = ConfigHelper.Configuration["AppSettings:uploadpathByBillofCredit"] ?? "uploadpath/BillofCredit";

        /// <summary>
        /// 供应商附件上传文件路径
        /// </summary>
        public static readonly string uploadpathBySupplier = ConfigHelper.Configuration["AppSettings:uploadpathBySupplier"] ?? "uploadpath/Supplier";

        /// <summary>
        /// 客户信息附件上传文件路径
        /// </summary>
        public static readonly string uploadpathByClient = ConfigHelper.Configuration["AppSettings:uploadpathByClient"] ?? "uploadpath/Client";

        /// <summary>
        /// 收发货附件上传文件路径
        /// </summary>
        public static readonly string uploadpathBySFH = ConfigHelper.Configuration["AppSettings:uploadpathBySFH"] ?? "uploadpath/SFH";

        /// <summary>
        /// 发货信息附件上传文件路径
        /// </summary>
        public static readonly string uploadpathByShipments = ConfigHelper.Configuration["AppSettings:uploadpathByShipments"] ?? "uploadpath/Shipments";

        #endregion
    }
}